home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
starfi_1
/
module1.bas
< prev
next >
Wrap
BASIC Source File
|
1997-09-07
|
887b
|
24 lines
Attribute VB_Name = "Module1"
Option Explicit
Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
' set up a Type Stucture for the star.
Type star
x As Integer ' x coordinates of star.
y As Integer ' y coordinates of star.
Speed As Integer ' speed the star will travel.
color As Long ' color star will be.
End Type
'set a global type stucture array called tStar.
Global Const NUMBER_STARS = 100
Global tStar(NUMBER_STARS) As star
Global Const SRCCOPY = &HCC0020
Global Const SRCAND = &H8800C6
Global Const SRCPAINT = &HEE0086
Global KeyStats As Integer
Global Const KEY_LEFT = &H25
Global Const KEY_UP = &H26
Global Const KEY_RIGHT = &H27
Global Const KEY_DOWN = &H28